package com.wenlin.myproduction.util;

import java.util.Random;

/**
 * Created by cxf on 2018/10/11.
 */

public class RandomUtil {
    private static Random sRandom;

    static {
        sRandom = new Random();
    }

    public static int nextInt(int bound) {
        return sRandom.nextInt(bound);
    }

    /***得到随机3位数*/
    public static int get3Random() {
        Random r = new Random();
        return r.nextInt(900) + 100;
    }
}
